package stores;

import java.sql.SQLException;
import java.util.List;

import workspace.Workspace;
import beans.Terem;

public interface TeremStore {

	List<Terem> loadTeremLista(Workspace workspace) throws SQLException;

	Terem loadTeremByName(Workspace workspace, String teremNev)
			throws SQLException;

	Terem loadTeremById(Workspace workspace, long id) throws SQLException;

	Terem insertTerem(Workspace workspace, Terem ujTerem) throws SQLException;

	Terem updateTerem(Workspace workspace, Terem updateTerem)
			throws SQLException;

	boolean deleteTerem(Workspace workspace, long id) throws SQLException;

	boolean deleteTeremForTest(Workspace workspace, long id)
			throws SQLException;
}
